-- GENERATED SPELL FOR [Shattered Hand Reaver] --


function spell0_16699(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16699', 514, 1)
end

function spell1_16699(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(30485,pUnit)
pUnit:RegisterEvent('Sorts_16699', 603, 1)
end

function spell2_16699(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(30471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16699', 652, 1)
end

function Sorts_16699(pUnit, Event)
local choix_sorts_16699 = math.random(0, 2)
if choix_sorts_16699 == 0 then
pUnit:RegisterEvent('spell0_16699', 1, 1)
end
if choix_sorts_16699 == 1 then
pUnit:RegisterEvent('spell1_16699', 1, 1)
end
if choix_sorts_16699 == 2 then
pUnit:RegisterEvent('spell2_16699', 1, 1)
end
end

function mob16699_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16699', math.random(1500, 3000), 1)
end

function mob16699_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16699_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16699_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16699, 1, 'mob16699_Action')
RegisterUnitEvent(16699, 2, 'mob16699_Leave')
RegisterUnitEvent(16699, 3, 'mob16699_Kill')
RegisterUnitEvent(16699, 4, 'mob16699_Die')
